answer file "テ影テ鵜テ厩テ曳テ液テ院テ韻テ嘉」テツゥテテテ映テ [テ運テテεャツォテ窶コテァテサテ窶コテï」ソテツオテ窶ケテ竏妥③" & return & "テェテ催ウpテテε液テ院テ韻テ嘉」テï」ソテォIテォï」ソテツオテニ津竕 テテヲテ竕・テツ「テ③" of type TEXT
if it is empty then exit mouseUp
put it into rFN
put rFN into cd field "File"
open file rFN
read from file rFN until eof
put it into cd field "Text"
close file rFN
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=141 top=292 right=314 bottom=310
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 16383
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Convert
----- HyperTalk script -----
on mouseUp
put the date into dateT
convert dateT to dateItems
put cd field "Text" into TEXT
put "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday" into CW
put 99 into Ch
repeat with N=1 to 10
if char 1 to 3 of line N of TEXT is "竚ィN" then put 2 into Ch
if char 1 to 4 of line N of TEXT is "竚アbg" then put 20 into Ch
if char 1 to 3 of line N of TEXT is "竚アN" then put 1 into Ch
if char 1 to 3 of line N of TEXT is "竚ゴN" then put 1 into Ch
if char 1 to 3 of line N of TEXT is "竚イN" then put 1 into Ch
if char 1 to 3 of line N of TEXT is "竚ゥN" then put 40 into Ch
if item 1 of line N of TEXT is "竚ウS" then put 30 into Ch